<template>
  <div>
    <h1>{{count}}</h1>
    <button @click="changeCount">累加</button>
  </div>
</template>

<script lang="ts">
  import {defineComponent} from "vue"
  export default defineComponent({
    name:'Abort',
  })


</script>
<script setup lang="ts">
//setup语法糖：再创建一个script标签，用于setup属性，这个环境中的属性和方法都是默认暴露的
  let count = 9
 const  changeCount =()=>{
    console.log(222)
    count++ 
 }

</script>